package com.futureweaver.controller;

import com.futureweaver.domain.RegisterLevel;
import com.futureweaver.service.RegisterLevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/register_level")
public class RegisterLevelController {
    @Autowired
    private RegisterLevelService service;

    @RequestMapping("/query")
    @ResponseBody
    public List<RegisterLevel> query() {
        return service.queryAll();
    }
}
